package com.ipcamera.demo.h5;

import android.content.Context;
import android.graphics.Bitmap;
import android.text.TextUtils;
import android.util.Base64;


import com.github.lzyzsd.jsbridge.CallBackFunction;


import org.json.JSONException;
import org.json.JSONObject;

import java.io.ByteArrayOutputStream;

import vstc2.nativecaller.NativeCaller;

/**
 * author: veepai
 * description: H5 工具类
 */
public class H5Utils {

    /**
     * 发送cgi
     */
    public void cgi(H5Info info, CallBackFunction function) {
        String msg = "set_update_push_user.cgi?loginuse=admin&loginpas=" + info.pwd + "&user=admin&pwd=" + info.pwd;
        NativeCaller.TransferMessage(info.uid, msg, 1);
        function.onCallBack("success");
    }



}
